import sys
import common

if len(sys.argv)<2:
     print("usage:")
     exit(0)

if len(sys.argv)==3:
	dir=sys.argv[2]
else:
	dir=''

myfile = open(dir+'\\'+sys.argv[1], "w")

s=sys.argv[1].replace('cpp','h')

n=sys.argv[1][:-4]

if n.startswith('dex-'):
	n=n[4:]
c=common.get_cls_name(n.replace('-','_'))


s1="""
#include \"{0}\"
""".format(s)



s1+="""
void {0}::print()""".format(c)

s1+='''
{
	//FIXME:
}
'''

s1+="""
int {0}::Size()""".format(c)

s1+='''
{
	//FIXME:
	return 0;
}'''


s1+="""
int {0}::sprint(char * buffer)""".format(c)

s1+='''
{
	//FIXME:
	return 0;
}'''


#print(s1)

myfile.write(s1)

myfile.close()